import React, { Component } from "react";
import NProgress from "nprogress"; // progress bar
import "nprogress/nprogress.css"; // progress bar style
import "./style.less";
NProgress.configure({ showSpinner: false }); // NProgress Configuration

export default class Loading extends Component {
  componentDidMount() {
    NProgress.start();
  }
  componentWillUnmount() {
    NProgress.done();
  }
  render() {
    return (
      <div className="app-container">
        <div className="sk-double-bounce">
          <div className="sk-child sk-double-bounce1"></div>
          <div className="sk-child sk-double-bounce2"></div>
        </div>
      </div>
    );
  }
}
